<h3 class="form-legend">
	<i class="bicon-goright"></i><span><?php echo Yii::t('app', 'Manage Pages') ?></span>
	<i class="clear"></i>
</h3>
<div class="top-tools">
    <?php //echo $this->backButton(array('action'=>null, 'controller'=>null))?>
    <div class="pull-right">
        <a class="btn btn-success" href="<?php //echo $this->url(array('action'=>'create', 'id' => ''))?>">
            <i class="icon-file icon-white"></i> <?php echo Yii::t('app', 'create')?>
        </a>
    </div>
    <div class="clear"></div>
</div>

<?php
/* @var $this PageController */
/* @var $model Page */

$this->breadcrumbs=array(
	'Pages'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List Page', 'url'=>array('index')),
	array('label'=>'Create Page', 'url'=>array('create')),
);

?>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'page-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array('name' => 'id', 'filter' => false, 'htmlOptions' => array('class' => 'center', 'style' => 'width:5%')),
		array(
				'name' => 'thumbnail',
				'type' => 'html',
				'filter' => false,
				'value' => '( $data->thumbnail )
							? CHtml::image($data->thumbnail, "", array("style"=>"width:50px;height:50px;"))
							: "no image"',
				'htmlOptions' => array('style' => 'width:50px')
		),
		array(
			'name' => 'title', 
			'htmlOptions' => array('style' => 'width:20%')
		),
		'quote',
		/*
		'status',
		'desc',
		'date_created',
		'date_edited',
		'seo_link',
		'seo_keyword',
		'seo_description',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
	'itemsCssClass' => 'grid-table table table-bordered table-striped'
)); ?>
